import request from '@/config/axios'

const baseURL = '/system/media-job'

export const createAsrJob = (data: {
  inputFile: string
  userData?: string
  title?: string
  description?: string
  startTime?: string
  duration?: string
}) => {
  return request.post({
    url: `${baseURL}/create-asr-job`,
    data
  })
}

export const getSmartHandleJob = (data: { jobId: string }) => {
  return request.get({
    url: `${baseURL}/get-smart-handle-job`,
    params: data
  })
}
